
import request from '@/utils/request'

// 获取厂家列表
export function getManufactorByPage(query) {
  return request({
    url: '/ManufactorController/getManufactorByPage',
    method: 'get',
    params: query
  })
}

// 查询厂家详情
export function getManufactorById(query) {
  return request({
    url: '/ManufactorController/getManufactorById',
    method: 'get',
    params: query
  })
}

// 新增厂家
export function addManufactor(data) {
  return request({
    url: '/ManufactorController/addManufactor',
    method: 'post',
    data: data
  })
}

// 修改厂家
export function updateManufactor(data) {
  return request({
    url: '/ManufactorController/updateManufactor',
    method: 'post',
    data: data
  })
}

// 删除厂家
export function deleteManufactorById(  data) {
  return request({
    url: '/ManufactorController/deleteManufactorById' ,
    method: 'delete',
    params: data
  })
}